#pragma once
#include <vector>
#include <iostream>
#include "Arm.h"
#include "Visitor.h"
#include "AlarmZone.h"
#include "Subject.h"

using namespace std;

class WorkZone : public Subject
{
private:
	vector<Arm *> Arms;
	WorkZone();
public:
	static WorkZone * WorkZoneInstance;
	static WorkZone * GetInstance()
	{
		if (WorkZoneInstance==NULL)
			WorkZoneInstance = new WorkZone();
		return WorkZoneInstance;
	}
	~WorkZone(void);
	void addArm(Arm * a);
	void AcceptVisitor(Visitor * v);

	Arm * GetArm(int ind);

};

WorkZone *Zone();
